Java Programming Simplified: From Novice to Professional - Start at the Beginning and Learn the World of Java by Dr. Muneer Ahmad Dar

Java Programming Simplified: From Novice to Professional - Start at the Beginning and Learn the World of Java by Dr. Muneer Ahmad Dar

Author:Dr. Muneer Ahmad Dar [Dar, Dr. Muneer Ahmad]
Language: eng
Format: epub
ISBN: 9789389845143
Publisher: BPB Publications
Published: 2020-07-15T00:00:00+00:00


Wrapper classes

In addition to the primitive data types like int, float, char, and more Java uses built in classes called the type wrappers which correspond to the basic data types to encapsulate the functionalities of these basic data types. The classes like Integer, Float, Character, and many more are fully equipped with methods to deal with the basic functionalities related to data. All these wrapper classes are defined in java.lang package and are imported automatically to all the Java programs.

The abstract class Number defines a superclass that is implemented by the classes that wrap the numeric types byte, short, int, long, float, and double.

The various methods available in Number class are:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.